package com.haixiaoke.saas.house.service;

import com.haixiaoke.saas.common.Node;
import com.haixiaoke.saas.house.domain.Building;

import java.util.List;

/**
 * 楼栋信息Service接口
 *
 * @author xiaolong
 * @date 2023-10-16
 */
public interface IBuildingService {
    /**
     * 查询楼栋信息
     *
     * @param buildingId 楼栋信息主键
     * @return 楼栋信息
     */
    Building selectBuildingByBuildingId(String buildingId);

    /**
     * 查询楼栋信息列表
     *
     * @param building 楼栋信息
     * @return 楼栋信息集合
     */
    List<Building> selectBuildingList(Building building);

    /**
     * 新增楼栋信息
     *
     * @param building 楼栋信息
     * @param userId
     * @return 结果
     */
    int insertBuilding(Building building, Long userId);

    /**
     * 修改楼栋信息
     *
     * @param building 楼栋信息
     * @return 结果
     */
    int updateBuilding(Building building);

    /**
     * 批量删除楼栋信息
     *
     * @param buildingIds 需要删除的楼栋信息主键集合
     * @return 结果
     */
    int deleteBuildingByBuildingIds(String[] buildingIds);

    /**
     * 删除楼栋信息信息
     *
     * @param buildingId 楼栋信息主键
     * @return 结果
     */
    int deleteBuildingByBuildingId(Long buildingId);

    /**
     * 统计楼栋数据
     *
     * @return
     */
    Building getStatistics();

    List<Building> selectBuildingListInfo(Building building);

    Integer selectBuildingByBuildingNumber(String estateId, String delFlag, String tenantId);

    List<Building> selectBuildingByEstateId(String estateId, String delFlag);

    List<Node> selectBuildingLevelList(Building building);

    int editBuilding(Building building, Long userId);

    /**
     * 导入楼栋信息
     */
    String importUser(List<Building> buildingList, String username, Long userId);
}
